<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>发送</button>
    <!-- <script>
        function fn (res) {
            console.log(res);
        }
        const btn = document.querySelector('button');
        btn.addEventListener('click', () => {
            const el = document.createElement('script');
            el.setAttribute('src', 'http://www.liulongbin.top:3006/api/jsonp?callback=fn&name=zs&age=18');
            document.body.appendChild(el);
            document.body.removeChild(el);
        });
    </script> -->
    <script src="./jq/jq.js"></script>
    <script>
        function fn (res) {
            console.log(res);
        }
        $('button').on('click', () => {
            const el = $(`<script src="http://www.liulongbin.top:3006/api/jsonp?callback=fn&name=zs&age=18">\</\script>`);
            el.appendTo('body').remove();
        });
    </script>
</body>
</html>